home *** CD-ROM | disk | FTP | other *** search
/ Whiteline: delta / whiteline CD Series - delta.iso / vision / povray / math / bicube.pov < prev    next >
Text File  |  1995-11-25  |  1KB  |  59 lines

  1. // Persistence Of Vision raytracer version 2.0 sample file.
  2.  
  3. // Sample quartic file
  4. // by Alexander Enzmann
  5.  
  6.  
  7. #include "shapes.inc"
  8. #include "colors.inc"
  9. #include "textures.inc"
  10.  
  11. // a cubic shape, like a cube with smoothed edges in appearance 
  12. quartic {
  13.   < 1.0,  0.0,  0.0,   0.0,    0.0,  0.0,  0.0,  0.0,  0.0,   0.0,
  14.     0.0,  0.0,  0.0,   0.0,    0.0,  0.0,  0.0,  0.0,  0.0,   0.0,
  15.     1.0,  0.0,  0.0,   0.0,    0.0,  0.0,  0.0,  0.0,  0.0,   0.0,
  16.     1.0,  0.0,  0.0,   0.0, -1000.0 >
  17.     rotate <20.0, 40.0, 30.0>
  18.  
  19.    texture {
  20.       pigment { Red }
  21.       finish {
  22.          phong 1.0
  23.          phong_size 10
  24.          ambient 0.2
  25.          diffuse 0.8
  26.       }
  27.    }
  28.    rotate -45*x
  29.    translate 20*z
  30. }
  31.  
  32. // Put down checkered floor 
  33. /*
  34. plane {
  35.    y, -20.0
  36.    texture {
  37.       pigment {
  38.          checker colour NavyBlue colour MidnightBlue
  39.          scale 20.0
  40.       }
  41.       finish {
  42.          ambient 0.8
  43.          diffuse 0.2
  44.       }
  45.    }
  46. }
  47. */
  48.  
  49. camera {
  50.    location  <0.0, 2.0, -10.0>
  51.    look_at   <0.0, 0.0,   0.0>
  52.    up        <0.0, 1.0,   0.0>
  53.    right     <4/3, 0.0,   0.0>
  54. }
  55.  
  56. light_source { <50, 100, 0> colour White }
  57.  
  58. light_source { <-200, 30, -300> colour White }
  59.